package chapter17;

import net.mindview.util.Countries;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by VIC on 2017/2/7.
 */
public class Test1 {
    public static void main(String[] args) {
        List<String> arrList = new ArrayList<String>(Countries.names(5));
        List<String> lkList = new LinkedList<String>(Countries.names(5));
        System.out.println(arrList);
        System.out.println(lkList);
        for(int i=0; i<5; i++) {
            Collections.shuffle(arrList);
            Collections.shuffle(lkList);
            System.out.println(arrList);
            System.out.println(lkList);
        }
    }
}
